import { createPinia } from 'pinia'
import type { App } from 'vue'
import useLoginAccountStore from './login/login'

const pinia = createPinia()

function registerStore(app: App) {
  // 1.先安装使用 pinia
  app.use(pinia)

  // 2.调用更新的函数
  const loginStore = useLoginAccountStore()
  loginStore.loadLocalCacheAction()
}

export default registerStore
